<%
	var ContentRotator=Class.create()
		ContentRotator.prototype=
		{
			initialize:function($options)
			{
				this.object=Server.CreateObject('MSWC.ContentRotator');
				this.path=($options.path||'');
				this.isshow=$options.isshow;				
				
				if(this.isshow==true)
					print(this.chooseContent(this.path));
			},
			chooseContent:function($path)
			{
				return this.object.ChooseContent($path);
			},	
			getAllContent:function($path)
			{
				return this.object.getAllContent($path);
			},			
			get:function($property)
			{
				if(($property in this.object)==false)		
					throw new Error(cusErrors_0099_ADO$Global);
					
				$property=($property.toLowerCase());
				if($property in this.object) this[$property]=this.object[$property];				
				return this.object[$property];
			},			
			set:function($property,$value)
			{
				if(($property in this.object)==false)
					throw new Error(cusErrors_0099_ADO$Global);
					
				$property=($property.toLowerCase());				
				this[$property]=$value;
				return this.object[$property]=$value;
			},
			show:function()
			{
				print(this.chooseContent(this.path));	
			},
			close:function()
			{
				try
				{
					for(var iProperty in this)
						this[iProperty]=null;
				}catch(e)
				{}
			}
		};
%>